#include<iostream>
#include<memory>
#include<string>
#include<functional>

void use_lambda1()
{
    int a = 1,b = 2;
    std::function<int()> f = [&]()->int{return a + b;};

    std::cout << f() << std::endl;
}
int main(int argc, char const *argv[])
{
    use_lambda1();
    return 0;
}
